<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\api\validate;

/**
 *职位验证器
 */
class Work extends ApiBase
{
    
    // 验证规则
    protected $rule = [
        'user_id'  => 'require',
        'title'  => 'require',
    ];

    // 验证提示
    protected $message = [
        'user_id.require'    => '用户不能为空',
        'title.require'    => '职位名称不能为空',
    ];

    // 应用场景
    protected $scene = [
        
        'rWork'  =>  ['user_id','title'],
    ];
}
